//
// Created by zhouyi on 2019-11-29.
//

#ifndef TESTFFMPEG_AUDIOCHANNEL_H
#define TESTFFMPEG_AUDIOCHANNEL_H


#include "BaseChannel.h"

extern "C" {
#include <libavutil/rational.h>
#include <libavcodec/avcodec.h>
};

class AudioChannel : public BaseChannel {
public:
    AudioChannel(int channelId, JavaCallHelper *hleper, AVCodecContext *avCodecContext, const AVRational &base);

    virtual void play();

    virtual void stop();

    virtual void decode();
};


#endif //TESTFFMPEG_AUDIOCHANNEL_H
